#include "iConfig.hpp"

#if 0

#include <glf/debugger/sleepy.h>

namespace glf
{
	namespace debugger
	{
		Sleepy::Sleepy() : Module("SLEEPY"), initDone(false)
		{
		}

		GLF_DEFINE_SINGLETON_WITH_DEP(Sleepy, Debugger)

		Sleepy::~Sleepy()
		{
			if(glf::debugger::Debugger::GetInstance())
			{
				glf::debugger::Debugger::GetInstance()->UnregisterModule(this);
			}
		}

		void Sleepy::sendSleepyPID()
		{
			PacketWriter & pw = GetPacketWriter();

			pw.Init(EDMT_SLEEPY_PID);

			#if defined(WIN32)
			DWORD pid = GetCurrentProcessId();
			pw.Write(pid);
			#else
			pw.Write(-1);
			#endif


			

			

			Send(pw);
		}

		void Sleepy::Parse(int type, glf::debugger::PacketReader& reader)
		{
			switch(type)
			{
				case EDMT_REQUEST_SLEEPY_PID: // request list of textures
				{
					this->sendSleepyPID();
				}
				break;
			}
		}

		void Sleepy::UpdateFrame()
		{
			if (this->initDone == false)
			{
				this->sendSleepyPID();

				this->initDone = true;
			}
		}
	}
}

#endif // GLF_ENABLE_DEBUGGER